package cn.zwx.activiti.example.mapper;

import cn.zwx.activiti.example.model.po.FormData;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;

import java.util.List;

/**
 * @Entity cn.zwx.activiti.example.model.po.TFormData
 */
public interface FormDataMapper {

    int insertSelective(FormData record);

    FormData selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(FormData record);

    /**
     * @description 根据流程实例查询历史表单数据
     * @return java.util.List<cn.zwx.activiti.example.model.po.FormData>
     * @author zhangwenxue
     * @createTime 2021/6/3 23:29
     **/
    List<FormData> selectFormData(String processInstanceId);

    /***
     * @description 批量插入
     * @return int
     * @author zhangwenxue
     * @createTime 2021/6/4 0:20
     **/
    int batchInsert(@Param("list") List<FormData> formDataList);
}




